-- GENERATED SPELL FOR [Freed Crusader] --


function spell0_30274(pUnit, Event) --@Blessing of Kings,n/a--
pUnit:FullCastSpellOnTarget(56525,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30274', 668, 1)
end

function spell1_30274(pUnit, Event) --@Blessing of Might,n/a--
pUnit:FullCastSpellOnTarget(56520,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30274', 512, 1)
end

function spell2_30274(pUnit, Event) --@Blessing of Wisdom,n/a--
pUnit:FullCastSpellOnTarget(56521,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30274', 573, 1)
end

function spell3_30274(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(56539,pUnit)
pUnit:RegisterEvent('Sorts_30274', 2500, 1)
end

function Sorts_30274(pUnit, Event)
local choix_sorts_30274 = math.random(0, 3)
if choix_sorts_30274 == 0 then
pUnit:RegisterEvent('spell0_30274', 1, 1)
end
if choix_sorts_30274 == 1 then
pUnit:RegisterEvent('spell1_30274', 1, 1)
end
if choix_sorts_30274 == 2 then
pUnit:RegisterEvent('spell2_30274', 1, 1)
end
if choix_sorts_30274 == 3 then
pUnit:RegisterEvent('spell3_30274', 1, 1)
end
end

function mob30274_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30274', math.random(1500, 3000), 1)
end

function mob30274_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30274_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30274_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30274, 1, 'mob30274_Action')
RegisterUnitEvent(30274, 2, 'mob30274_Leave')
RegisterUnitEvent(30274, 3, 'mob30274_Kill')
RegisterUnitEvent(30274, 4, 'mob30274_Die')
